package com.ctgu.mapper;

import com.ctgu.entity.UserEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author ALEX
 * @since 2022/9/11 22:45
 */
public interface DynamicSQLMapper {
    List<UserEntity> getLikeUserByField(String field);

    List<UserEntity> getLikeUserByEntity(UserEntity userEntity);

    Integer insertUserByArray(@Param("userEntities")UserEntity[] userEntities);

    Integer insertUserByList(@Param("userEntities")List<UserEntity> userEntities);

    Integer deleteUserByArray(@Param("ids")Integer[] ids);

    Integer deleteUserByList(@Param("ids")List<Integer> ids);
}